package com.agree.util.excel.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;

import java.io.Serializable;

/**
 * Created by wangmu on 2017/12/1.
 * <p>afa平台接口字段映射表</p>
 */
//@Items(invokeHandlers = {MappingHandlerConfig.SIMPLE_QUERY})
@ExcelTarget(value = "interfaceColMapEntity")
public class InterfaceColMapEntity implements Serializable {
    @Excel(name = "空行", isImportField = "true_st",width = 5)
    private String blank;

    @Excel(name = "接口代码", isImportField = "true_st",width = 18)
    private String msgtypeid;

    @Excel(name = "接口名称", isImportField = "true_st",width = 32)
    private String msgtypename;

    @Excel(name = "字段序号",type = 10, isImportField = "true_st",width = 7.67)
    private int colnum;

    @Excel(name = "外部字段名称", isImportField = "true_st",width = 35)
    private String colname;

    @Excel(name = "字段标识", isImportField = "true_st",width = 9.22)
    private String colflag = "O";

    @Excel(name = "字段默认值", isImportField = "true_st",width = 11)
    private String coldefault;

    @Excel(name = "字段类型", isImportField = "true_st",width = 10.89)
    private String coltype = "Object";

    @Excel(name = "字段长度", isImportField = "true_st",type = 10,width = 8.44)
    private String collength = "9999";

    @Excel(name = "字段描述", isImportField = "true_st",width = 18)
    private String coldesc;

    @Excel(name = "是否必输", isImportField = "true_st",width = 8.56)
    private String colmust = "Y";

    @Excel(name = "平台字段名", isImportField = "true_st",width = 35)
    private String colmapname = "/";

    public String getMsgtypeid() {
        return msgtypeid;
    }

    public void setMsgtypeid(String msgtypeid) {
        this.msgtypeid = msgtypeid;
    }

    public String getMsgtypename() {
        return msgtypename;
    }

    public void setMsgtypename(String msgtypename) {
        this.msgtypename = msgtypename;
    }

    public int getColnum() {
        return colnum;
    }

    public void setColnum(int colnum) {
        this.colnum = colnum;
    }

    public String getColname() {
        return colname;
    }

    public void setColname(String colname) {
        this.colname = colname;
    }

    public String getColflag() {
        return colflag;
    }

    public void setColflag(String colflag) {
        this.colflag = colflag;
    }

    public String getColdefault() {
        return coldefault;
    }

    public void setColdefault(String coldefault) {
        this.coldefault = coldefault;
    }

    public String getColtype() {
        return coltype;
    }

    public void setColtype(String coltype) {
        this.coltype = coltype;
    }

    public String getCollength() {
        return collength;
    }

    public void setCollength(String collength) {
        this.collength = collength;
    }

    public String getColdesc() {
        return coldesc;
    }

    public void setColdesc(String coldesc) {
        this.coldesc = coldesc;
    }

    public String getColmust() {
        return colmust;
    }

    public void setColmust(String colmust) {
        this.colmust = colmust;
    }

    public String getColmapname() {
        return colmapname;
    }

    public void setColmapname(String colmapname) {
        this.colmapname = colmapname;
    }

    public String getBlank() {
        return blank;
    }

    public void setBlank(String blank) {
        this.blank = blank;
    }

    @Override
    public String toString() {
        return "InterfaceColMapEntity{" +
                "blank='" + blank + '\'' +
                ", msgtypeid='" + msgtypeid + '\'' +
                ", msgtypename='" + msgtypename + '\'' +
                ", colnum='" + colnum + '\'' +
                ", colname='" + colname + '\'' +
                ", colflag='" + colflag + '\'' +
                ", coldefault='" + coldefault + '\'' +
                ", coltype='" + coltype + '\'' +
                ", collength='" + collength + '\'' +
                ", coldesc='" + coldesc + '\'' +
                ", colmust='" + colmust + '\'' +
                ", colmapname='" + colmapname + '\'' +
                '}';
    }
}
